-- GENERATED SPELL FOR [Verdantine Oracle] --


function spell0_12478(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(20665,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12478', 23000, 1)
end

function spell1_12478(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(20664,pUnit)
pUnit:RegisterEvent('Sorts_12478', 12000, 1)
end

function Sorts_12478(pUnit, Event)
local choix_sorts_12478 = math.random(0, 1)
if choix_sorts_12478 == 0 then
pUnit:RegisterEvent('spell0_12478', 1, 1)
end
if choix_sorts_12478 == 1 then
pUnit:RegisterEvent('spell1_12478', 1, 1)
end
end

function mob12478_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12478', math.random(1500, 3000), 1)
end

function mob12478_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12478_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12478_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12478, 1, 'mob12478_Action')
RegisterUnitEvent(12478, 2, 'mob12478_Leave')
RegisterUnitEvent(12478, 3, 'mob12478_Kill')
RegisterUnitEvent(12478, 4, 'mob12478_Die')
